package com.hxc.springboot.judge.codesandbox.impl;

import com.hxc.springboot.judge.codesandbox.CodeSandbox;
import com.hxc.springboot.judge.codesandbox.model.ExecuteCodeRequest;
import com.hxc.springboot.judge.codesandbox.model.ExecuteCodeResponse;
import org.springframework.stereotype.Service;

/**
 * 远程代码沙箱
 */
@Service
public class RemoteCodeSandbox implements CodeSandbox {
    @Override
    public ExecuteCodeResponse executeCode(ExecuteCodeRequest request) {

        System.out.println("远程代码沙箱");
        return ExecuteCodeResponse.builder().message("执行成功").build();
    }
}
